﻿/*
            Author : Nguyen Van Ty
            Email  : ngvanty03@gmail.com
            Date   : 11/12/2010 
           
            */


using System;
using System.Collections.Generic;
using System.Text;


namespace BusinessObject
{
    /// <summary>
    /// This is Category object, it is object of BusinessObject table.
    /// </summary>
    public class Paging
    {
        #region fields
        private int pageIndex;
        private int pageSize;
        #endregion fields

        #region constructor
        /// <summary>
        /// Define default constructor for Paging Object
        /// </summary>
        public Paging()
        {
            this.pageIndex = 1;
            this.pageSize = int.MaxValue;
        }
        /// <summary>
        /// Define constructor for Paging Object
        /// </summary>
        public Paging(int pageIndex,int pageSize)
        {
            this.pageSize = pageSize;
            this.pageIndex = pageIndex;
        }
        #endregion constructor
        #region properties
        /// <summary>
        /// Define PageIndex Property
        /// </summary>
        public int PageIndex
        {
            get { return this.pageIndex; }
            set { this.pageIndex = value; }
        }
        /// <summary>
        /// Define PageSize Property
        /// </summary>
        public int PageSize
        {
            get { return this.pageSize; }
            set { this.pageSize = value; }
        }
        #endregion properties
    }
}
